package com.main;


import java.util.HashMap;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;


public class StaticInventoryData {
	public enum GameObject {Hand,Shovel,Axe, Flower_Red, Flower_Blue, BlueBerry, Apple,Nothing}
	public static final int nothingID = 0;
	public static final int shovelID = 1;
	public static final int flower_redID = 2;
	public static final int flower_blueID = 3;
	public static final int blue_berryID = 4;
	public static final int appleID = 5;
	public static final int handID = 6;
	public static final int axeID = 7;
	public static Sprite[] invPics;
	public static HashMap<GameObject, Integer> objId;
	public static HashMap<Integer, GameObject> idObj;
	public StaticInventoryData() {
		invPics = new Sprite[8];
		objId = new HashMap<GameObject, Integer>();
		idObj = new HashMap<Integer, GameObject>();
		invPics[shovelID] = new Sprite(new Texture(Gdx.files.internal("data/Shovel.png")));
		invPics[flower_redID] = new Sprite(new Texture(Gdx.files.internal("data/Item_Red_Flower.png")));
		invPics[flower_blueID] = new Sprite(new Texture(Gdx.files.internal("data/Item_Blue_Flower.png")));
		invPics[blue_berryID] = new Sprite(new Texture(Gdx.files.internal("data/Blueberry.png")));
		invPics[appleID] = new Sprite(new Texture(Gdx.files.internal("data/Apple.png")));
		invPics[handID] = new Sprite(new Texture(Gdx.files.internal("data/Hand.png")));
		invPics[axeID] = new Sprite(new Texture(Gdx.files.internal("data/Axe.png")));
		objId.put(GameObject.Nothing,StaticInventoryData.nothingID);
		objId.put(GameObject.Shovel,StaticInventoryData.shovelID);
		objId.put(GameObject.Flower_Red,StaticInventoryData.flower_redID);
		objId.put(GameObject.Flower_Blue,StaticInventoryData.flower_blueID);
		objId.put(GameObject.BlueBerry,StaticInventoryData.blue_berryID);
		objId.put(GameObject.Apple,StaticInventoryData.appleID);
		objId.put(GameObject.Hand,StaticInventoryData.handID);
		objId.put(GameObject.Axe,StaticInventoryData.axeID);
		idObj.put(StaticInventoryData.nothingID,GameObject.Nothing);
		idObj.put(StaticInventoryData.shovelID,GameObject.Shovel);
		idObj.put(StaticInventoryData.flower_redID,GameObject.Flower_Red);
		idObj.put(StaticInventoryData.flower_blueID,GameObject.Flower_Blue);
		idObj.put(StaticInventoryData.blue_berryID,GameObject.BlueBerry);
		idObj.put(StaticInventoryData.appleID,GameObject.Apple);
		idObj.put(StaticInventoryData.handID,GameObject.Hand);
		idObj.put(StaticInventoryData.axeID,GameObject.Axe);
	}
}
